package com.spc.demo.business;

/**
 * 叶子节点
 */
public class Leaf extends Component {
    private final String name;

    public Leaf(String name) {
        this.name = name;
    }

    @Override
    public void print() {
        System.out.println("Leaf name:" + this.name);
    }
}
